home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.DialogFactory;
- import com.extensibility.xml.BaseDeclaration;
- import com.extensibility.xml.DTDUtilities;
- import com.extensibility.xml.ParserException;
- import javax.swing.JFrame;
-
- public class AttrTable$ConstraintsDialog extends ConstraintsCellDialog {
- // $FF: synthetic field
- final AttrTable this$0;
- int row;
- int column;
-
- public AttrTable$ConstraintsDialog(AttrTable var1, JFrame var2, SchemaDoc var3, BaseDeclaration var4, OptionsQlicker var5, String var6) {
- super(var2, var3, var5, var4, false, var6);
- this.this$0 = var1;
- }
-
- void setTableInfo(int var1, int var2) {
- this.row = var1;
- this.column = var2;
- }
-
- protected void doApply() {
- try {
- DTDUtilities.parseNameList(((CellDialog)this).getText(), '|');
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- super.doApply();
- } catch (ParserException var2) {
- DialogFactory.showValidation(this, var2.getMessage(), false);
- }
-
- }
-
- protected boolean doSave() {
- try {
- DTDUtilities.parseNameList(((CellDialog)this).getText(), '|');
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- if (this.this$0.getCellEditor() instanceof OptionsQlicker) {
- ((OptionsQlicker)this.this$0.getCellEditor()).setText(((CellDialog)this).getText());
- }
-
- boolean var1 = true;
- return var1;
- } catch (ParserException var3) {
- DialogFactory.showValidation(this, var3.getMessage(), false);
- boolean var2 = false;
- return var2;
- }
- }
- }
-